<html>
<head><meta charset="utf-8"><title>debug! and debug-assertions · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/debug!.20and.20debug-assertions.html">debug! and debug-assertions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="174588090"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/debug%21%20and%20debug-assertions/near/174588090" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mikeyhew <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/debug!.20and.20debug-assertions.html#174588090">(Aug 30 2019 at 22:35)</a>:</h4>
<p>Did something changes with the debug-assertions entry in config.toml change in the last 6 months? I can't get <code>debug!</code> output anymore with <code>RUST_LOG=debug build/x86*/stage1/bin/rustc foo.rs</code></p>



<a name="174588148"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/debug%21%20and%20debug-assertions/near/174588148" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Matthew Jasper <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/debug!.20and.20debug-assertions.html#174588148">(Aug 30 2019 at 22:36)</a>:</h4>
<p>The environment variable is RUSTC_LOG now</p>



<a name="174588196"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/debug%21%20and%20debug-assertions/near/174588196" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mikeyhew <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/debug!.20and.20debug-assertions.html#174588196">(Aug 30 2019 at 22:38)</a>:</h4>
<p>Oh. Thanks, you're a lifesaver!</p>



<a name="174588423"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/debug%21%20and%20debug-assertions/near/174588423" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/debug!.20and.20debug-assertions.html#174588423">(Aug 30 2019 at 22:42)</a>:</h4>
<p>We should realistically be emitting a single message I feel on startup if we detect RUST_LOG for our crates</p>



<a name="174588433"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/debug%21%20and%20debug-assertions/near/174588433" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/debug!.20and.20debug-assertions.html#174588433">(Aug 30 2019 at 22:42)</a>:</h4>
<p>I imagine that wouldn't be too hard to implement, but I don't really know how env_logger et all work.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>